package com.sx.micowell.framework.model

import com.example.mvvm.base.vm.BaseViewModel
import com.github.mikephil.charting.data.PieEntry
import com.miloyu.modelnet.network.ApiResponse
import com.miloyu.modelnet.network.HttpClient
import com.miloyu.modelnet.network.service.IApiService
import com.miloyu.modelnet.response.TrainListBean
import kotlin.streams.toList

/**
 * @Description
 * @Author 梁浩文
 * @Date 2021/9/11 15:45
 */
class PlayCountDownModel : BaseViewModel() {
    fun cashLoad(data: String) {
        HttpClient.instance.create(IApiService::class.java)
            .loadCash(data)
            .subscribe(object : ApiResponse<Void>() {
                override fun success(data: Void?, msg: String?) {

                }

                override fun onFail(e: Throwable?, errorMsg: String?) {
                }

            })
    }
}